import request from '@/utils/request'

// 查询二维码授权列表
export function listQrcodeOpenArea(query) {
  return request({
    url: '/diagram/qrcodeOpenArea/list',
    method: 'get',
    params: query
  })
}

// 查询二维码授权详细
export function getQrcodeOpenArea(id) {
  return request({
    url: '/diagram/qrcodeOpenArea/' + id,
    method: 'get'
  })
}

// 新增二维码授权
export function addQrcodeOpenArea(data) {
  return request({
    url: '/diagram/qrcodeOpenArea',
    method: 'post',
    data: data
  })
}

// 修改二维码授权
export function updateQrcodeOpenArea(data) {
  return request({
    url: '/diagram/qrcodeOpenArea',
    method: 'put',
    data: data
  })
}

// 删除二维码授权
export function delQrcodeOpenArea(id) {
  return request({
    url: '/diagram/qrcodeOpenArea/' + id,
    method: 'delete'
  })
}

// 导出二维码授权
export function exportQrcodeOpenArea(query) {
  return request({
    url: '/diagram/qrcodeOpenArea/export',
    method: 'get',
    params: query
  })
}